package com.suhui.task.pojo.progress;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class M {
    @Digits(integer = 8, fraction = 0, message = "id必须为8位数字")
    private String id;
    @NotBlank(message = "姓名不能为空")
    @Size(min = 2, max = 10, message = "姓名长度必须在2-10个字符之间")
    private String name;
    private String group;
    private String group_detail;
    @PositiveOrZero(message = "总请假次数为非负数")
    private int ask_for_leave_all;

    private String member_progress;

}
